<template>
  <div id="app">
    <!-- <HelloWorld msg="Welcome to Your Vue.js App"/> -->
    <button @click="dialogVisible = true">出现</button>
    <el-dialog
      :visible.sync="dialogVisible"
      width="30%" id="pdfDom">
      <span>这是一段信息</span>
      <img :src="currentObj.url">
      <span slot="footer" class="dialog-footer">
        <el-button @click="dialogVisible = false">取 消</el-button>
        <el-button type="primary" @click="getPdf()">打 印</el-button>
      </span>
    </el-dialog>
  </div>
</template>

<script>
export default {
  name: 'app',
  data () {
    return {
      dialogVisible: false,
      pdfName: '张三的简历',
      currentObj: {
        name: '张三',
        age: 24,
        url: 'https://public-movie.eos-beijing-1.cmecloud.cn/2022/11/04/WNqKzKPXiiKj3deee16b03b2e4b7b6bf0e33ae515333_20221104173432A074.jpg?AWSAccessKeyId=10O8IEKAKIKAEZ4LLN4O&Expires=1672502399&Signature=1aY1DfCXm5IcZabZ0j6VlKzzZa0%3D'
      }
    }
  }
}
</script>

<style>
#app {
  font-family: 'Avenir', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>
